import React from 'react'
import { Input } from 'antd'
import './index.scss'

const setRoomId = ({ roomId, setRoomId }) => {
  return (
    <div className="input-item">
      <label htmlFor="Avatar">房间号</label>
      <Input
        onChange={(e) => setRoomId(e.target.value)}
        placeholder="请输入房间号"
        value={roomId} />
    </div>
  )
}

export default setRoomId
